﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BUS;
namespace CustomerManager
{
    public partial class ucDebt_Company : UserControl
    {
        public ucDebt_Company()
        {
            InitializeComponent();
        }

        private void btnLuu_Click(object sender, EventArgs e)
        {

        }
        DataTable dtKhoanVay;
        int loaikh;
        public string tenkhdn = "";
        public void LoadKhoanVay(int kh, string makh)
        {
            loaikh = kh;
            dtKhoanVay = DebtBUS.LayKhoanVayTheoMaKH(makh, kh);
            dgvkhdoanhnghiep.DataSource = dtKhoanVay;
        }

      

        private void btnTroLai_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void ucDebt_Company_Load(object sender, EventArgs e)
        {
            txtTenKH.Visible = true;
            txtTenKH.Text = tenkhdn;
        }
    }
}
